@import "style-variable.scss";

body {
    background-image: url(../img/login_bg.jpg);
    background-color: $bodybg;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

@mixin form {
    height: 470px;
    width: 800px;
    justify-content: space-between;

    &-left {
        width: 370px;
        height: 470px;

        &-img {
            width: 370px;
            height: 470px;
        }
    }

    &-right {
        width: 430px;
        height: 470px;

        &-title {
            font-size: 18px;
            line-height: 50px;
            border: 1px solid $linecolor;
            padding: 0 25px;
            justify-content: space-between;

            .close {
                cursor: pointer;
            }
        }

        &-body {
            padding-top: 20px;

            &-form {
                padding: 0 25px;

                .layui-form-item {
                    position: relative;

                    .layui-form-label {
                        position: absolute;
                        color: #aaaaaa;
                        width: auto;
                        font-size: 12px;
                        top: 10px;
                        left: 10px;
                        transition: top 0.2s ease;
                        cursor: text;
                        z-index: 1000;
                        background-color: $bgwhite;
                        height: 20px;
                        display: block;
                        padding: 0 8px;
                        font-weight: 400;
                        line-height: 20px;
                    }

                    .layui-input-block {
                        position: relative;
                        height: 40px;
                        box-sizing: border-box;
                        margin: 0 auto 25px;
                        border: 1px #f1f1f1 solid;
                        border-radius: 3px;
                    }

                    .layui-input {
                        border: none;
                        border-radius: 0;
                        outline: none;
                        height: 40px;
                        font-size: 14px;
                        padding-left: 10px;
                        position: absolute;
                        top: 0px;
                        left: 5px;
                        z-index: 1000;
                        background-color: transparent;
                        height: 38px;
                        line-height: 1.3;
                        border-radius: 2px;
                    }

                    .captcha {
                        position: absolute;
                        top: 0;
                        right: 0;
                        cursor: pointer;
                        border-radius: 2px;
                        z-index: 1000;
                    }

                    .input-captcha {
                        width: 210px;
                        position: static !important;
                        margin-left: 0 !important;
                    }

                }

                .input-item-active,
                .input-item-filled {
                    .layui-form-label {
                        top: -10px !important;
                    }
                }

                &-other {
                    justify-content: space-between;

                    div {
                        width: 50%;

                        &:nth-child(2) {
                            text-align: right;
                        }

                        a {
                            color: #8d8d8d;
                            text-align: left;
                            font-size: 14px;

                        }
                    }

                }

            }
        }
    }
}

.main {

    &-login {
        @include form;
    }

    &-forget-password {
        @include form;
    }

    &-forget-password-show {
        position: absolute;
        z-index: 99999;
        margin: auto;
        top: -15px;
        left: 0;
        bottom: 0;
        right: 0;
    }

}

.layui-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    z-index: 5000;
    background-color: rgba(0, 0, 0, .3);
}